package com.woniuxy.consumer.service;

import com.woniuxy.commons.entity.PageBean;
import com.woniuxy.commons.entity.UserDetails;
import com.woniuxy.commons.entity.Userinfo;
import com.woniuxy.commons.utils.ResponseResult;
import org.apache.ibatis.annotations.Param;

/**
 * @author author
 * @create 2021-11-12 18:11
 */
public interface UserinfoService {
    //添加用户
    void insertUserinfoService(Userinfo userinfo);

    //查询展示所有用户
    //分页查询表中数据
    ResponseResult<PageBean<Userinfo>> selectUserinfoByPageService(@Param("userDetails") UserDetails userDetails,
                                                                   @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    //根据uid删除表单中的数据
    ResponseResult deleteByUid(String uid);

}
